public enum CollectionType extends Enum<CollectionType> implements Type
Enum Constant and Description |
---|
ORDER
CollectionType Order, like a set, but with ordering.
|
SEQUENCE
CollectionType Sequence, ordered and allows to contain values multiple times.
|
SET
CollectionType Set, each value can only appear once, ordering does not matter.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getTypeClass()
Gets the type class.
|
static CollectionType |
getTypeFor(Class<?> typeClass)
Returns the CollectionType based on a typeClass.
|
static CollectionType |
parseCollectionType(String input) |
String |
toKey()
Returns the key of this type as string.
|
String |
toString()
Returns the key of this type as string.
|
static CollectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CollectionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final CollectionType ORDER
public static final CollectionType SEQUENCE
public static final CollectionType SET
public Class<?> getTypeClass()
Type
getTypeClass
in interface Type
public static CollectionType getTypeFor(Class<?> typeClass)
typeClass
- Use this typeClass to derive the CollectionTypepublic static CollectionType parseCollectionType(String input)
public String toKey()
Type
public String toString()
toKey()
.toString
in class Enum<CollectionType>
public static CollectionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CollectionType[] values()
for (CollectionType c : CollectionType.values()) System.out.println(c);
Copyright © 2015. All rights reserved.